#include <iostream>
#include <vector>

using namespace std;

class Solution
{
public:
    int minOperations(vector<int>& nums, int k)
    {
        int cnt = 0;
        for (size_t i = 0; i < nums.size(); i++)
        {
            if (nums[i] < k)
            {
                cnt++;
            }
        }
        return cnt;
    }
};

int main()
{
    vector<int> nums = { 2, 11, 10, 1, 3 };
    int k = 10;
    Solution solution;
    int cnt = solution.minOperations(nums, k);
    cout << cnt << endl;
	return 0;
}